package me.caofeng.dao;

import me.caofeng.pojo.Address;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * Copyright © 2017曹峰. All rights reserved.
 *
 * @Prject: mall
 * @Package: me.caofeng.dao
 * @Description:
 * @Author: 曹峰 blog.caofeng.me
 * @Date: 2017-06-27 15:44
 * @Version: V1.0
 */
@Repository
public interface AddressMapper {
   int addAddress( Address address);

   int deleteAddress(@Param("id") Integer id, @Param("userId") String userId);

   int updateAddress(Address address);

   Address getAddress(@Param("id") Integer id ,@Param("userId") String userId);

   List<Address> getAddresses(@Param("userId") String userId);

}
